<extend name="Base:base" />
<block name="title"><title>用户管理</title></block>
<block name="content">
<script type="text/javascript" src="__PUBLIC__/Js/account_manage.js"></script>

<link rel="stylesheet" href = "__PUBLIC__/Css/animate.css">
<link href = "__PUBLIC__/Css/index.css" type = "text/css" rel = "stylesheet"/>
	<div id="content" align="center">		
		<div id="user" >
			<p style="margin-left:-560px; font-size:20px; color:#1d353f; font-weight:bold;">用户列表</p>
			<div id='addBtn'><input type="button" value="添加用户" id="btn" onclick="javascript:window.location.href = '__CONTROLLER__/add';"></div>
			<hr width="700px"/>
			<table>
			<tr style="color:#1d353f;"><th>序号</th><th>用户名</th><th>创建时间</th><th>操作</th><tr>
			<foreach name="list" item="user">
			<tr>
				<td><if condition="($_GET['p'] eq 0)">{++$i}<else />{++$i + ($_GET['p']-1) * 7}</if></td>
				<td>{$user['username']}</td>
				<td>{$user['createtime']|date="Y-m-d",###}</td>
				<td>
					<a href="javascript:userDelete('__CONTROLLER__/delete','{$user['id']}')"><img src="__PUBLIC__/Img/delete.png" /></a>
				</td>
			</tr>
			</foreach>	
			</table>
		</div>	
		<div id="count" align="center">共{$count}条</div>	
		<div id="page" align="center">{$page}</div>	
	</div>
</block>



